package com.movitech.mobile.ddzy.modules.jobs;

import com.movitech.mobile.cz.base.modules.config.EvaluationTypeEnum;
import com.movitech.mobile.cz.base.supplier.bizservice.SSuppliersEvaluationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class GenerateEvaluationProcessesJob {

	@Autowired
    @Qualifier("sSuppliersEvaluationService")
	private SSuppliersEvaluationService sSuppliersEvaluationService;

	/*@Scheduled(cron = "${generate.processes.evaluation.middle.data.scheduled}")
	public void generateEvaluationMiddleProcesses() {
		System.out.println("=============GenerateEvaluationProcessesJob[generateEvaluationMiddleProcesses] START===============");
		sSuppliersEvaluationService.generateEvaluationProcesses(EvaluationTypeEnum.EVALUATION_MIDDLE_YEAR_1.getCode());
		System.out.println("=============GenerateEvaluationProcessesJob[generateEvaluationMiddleProcesses] END===============");
	}

    @Scheduled(cron = "${generate.processes.evaluation.end.data.scheduled}")
    public void generateEvaluationEndProcesses() {
        System.out.println("=============GenerateEvaluationProcessesJob[generateEvaluationEndProcesses] START===============");
        sSuppliersEvaluationService.generateEvaluationProcesses(EvaluationTypeEnum.EVALUATION_END_YEAR_2.getCode());
        System.out.println("=============GenerateEvaluationProcessesJob[generateEvaluationEndProcesses] END===============");
    }*/
}
